package com.ktg.mes.wm.mapper;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ktg.mes.pro.domain.ProItemNeed;
import com.ktg.mes.pro.domain.ProWorkorder;
import com.ktg.mes.wm.domain.WmQuantityRecord;
import com.ktg.mes.wm.domain.WmStockWillOut;
import com.ktg.mes.wm.domain.WmStockWillSelectParam;
import com.sun.jna.platform.win32.WinDef;
import org.apache.ibatis.annotations.Param;

/**
 * 数量关联记录Mapper接口
 *
 * @author byteco
 * @date 2022-12-15
 */
public interface WmQuantityRecordMapper extends BaseMapper<WmQuantityRecord>
{


    /**
     * 数量关联查询，allAuantity 为条件 数量总和
     * @param record
     * @return
     */
    List<WmQuantityRecord> findSumCount(WmQuantityRecord record);


    /**
     * 查询符合条件的记录个数
     * @param record
     * @return
     */
    BigDecimal findExistCount(WmQuantityRecord record);

    /**
     * 修改数量
     * @param record
     */
    void updateRecordQuantity(WmQuantityRecord record);

    /**
     * 插入记录
     * @param record
     */
    void insertRecord(WmQuantityRecord record);
}
